import { TagDTO } from '@/bean/dto';
import { ArrayResponse, QueryTagModel } from '@/bean/xhr';
import ajax from '.';

class TagService {
  // Page = (params: QueryPageModel): Promise<PageResponse<ArticleDTO>> =>
  //   ajax.get('/article/page', { params });

  All = (params: QueryTagModel): Promise<ArrayResponse<TagDTO>> =>
    ajax.get('/tag/all', { params });
}

export const tagService = new TagService();
